package com.gopay.common.constants.oldmermove;


/**
 * 老平台商户迁移状态枚举
 * 
 * @author zhangjunyu
 * 
 */
public enum OldMerMoveStatus {

	/**
	 * 挂起
	 */
	ONDO(0),
	/**
	 * 失败
	 */
	FAIL(1),
	/**
	 * 成功
	 */
	SUCC(2);

	public final Integer value;

	private OldMerMoveStatus(Integer value) {
		this.value = value;
	}
	public static OldMerMoveStatus get(Integer i) {
	    OldMerMoveStatus[] cs = OldMerMoveStatus.class.getEnumConstants();
        for (OldMerMoveStatus c : cs) {
            if (c.value.equals(i)){
            	return c;
			}
        }
        throw new RuntimeException(" wrong " + OldMerMoveStatus.class.getSimpleName() + "  value! " + i);
    }
}
